package com.jming.jike.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jming.jike.entity.Dish;

import java.util.List;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/04/15
 */
public interface DishMapper extends BaseMapper<Dish> {


    /**
     * 获取菜品列表
     *
     * @param categoryId
     * @return List<Dish>
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    List<Dish> mealList(Long categoryId);

    /**
     * 根据套餐信息查询套餐的菜品详情
     *
     * @param soleId
     * @return List<Dish>
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    List<Dish> dishListByMeal(Long soleId);

    /**
     * 查询菜品信息
     *
     * @param soleId
     * @return Dish
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    Dish queryMeal(Long soleId);

    /**
     * 查询菜品唯一id列表
     *
     * @param soleIdList
     * @return Dish
     * @Author jinming.zhang
     * @Date 2022/5/5
     */
    List<Long> queryMealList(List<Long> soleIdList);

}
